Intelligent method for viewing surveillance videos with improved efficiency

ABSTRACT

In the intelligent method for viewing the surveillance video of the present invention, Because the multi-channel surveillance videos are integrated into a virtual surveillance scene for panoramic viewing, it is possible to view surveillance videos from the plurality of channels at the same time, reduce the viewing time. In addition, one frame of image is extracted at the same time point for a video of the multi-channel surveillance videos, and a next frame of image is extracted after a predetermined time interval, instead of extracting all the images to have a view, and thus it is possible to improve the efficiency and not to miss important video information. In the present invention, the extracted images are processed to obtain visual images of interest, which is advantageous to make the video information and video details in the videos that are of interest to human eye salient and also improve the efficiency.

TECHNICAL FIELD

The present invention relates to the field of intelligent surveillance technology, and more specifically, to an intelligent method for viewing surveillance videos with improved efficiency.

BACKGROUND

Video surveillance is the basis for real-time surveillance of key departments or important places in various industries. Management departments can utilize video surveillance to obtain effective video information and timely monitor and record the process of sudden abnormal events to provide efficient and timely command and dispatch, deploy police forces, handle cases, etc. However, viewing surveillance videos is often time-consuming and laborious. For example, if the video surveillance of a place is implemented through six-channel surveillance cameras, it is necessary to view surveillance videos from the six channels to have a view of the surveillance videos. It takes a lot of time even if six persons are arranged to view the videos. In addition, a lot of time in the surveillance video is useless, but in order to find valuable clues, in the prior art, the video viewers have to manually view every detail, which spends lots of useless effort. Furthermore, a video viewer cannot view surveillance videos from the six channels at the same time, and thus he/she cannot grasp the situation of the place under surveillance from a global perspective. In addition, human eyes are tired due to long-time viewing of video viewers and important video information and key video details tend to be missed.

SUMMARY

The technical problem to be solved by the present invention is to provide an intelligent method for viewing surveillance videos with improved efficiency, which can achieve viewing surveillance videos from a plurality of channels at the same time, reduce viewing time, make the video information and video details in the videos that are of interest to human eyes salient and improve the efficiency.

To solve the above technical problems, the present invention adopts the following technical solutions:

An intelligent method for viewing surveillance videos with improved efficiency, comprising steps of:

acquiring surveillance videos, wherein the surveillance videos comprise videos from a plurality of channels, and each video from each channel corresponds to a surveillance angle;

extracting first frames of images of the videos from the plurality of channels at a same starting point of view time, and extracting next frames of images after a same predetermined time interval, and then continuing with extracting until last frames of images are extracted at a same ending point of view time;

grouping images extracted from the videos from the plurality of channels at a same time point into a group of images, and performing visual interest detection on each group of images to obtain a visual image of interest corresponding to the group;

stitching the visual images of interest of each group into a panoramic image; converting all panoramic images into corresponding virtual surveillance scenes; and performing the viewing in the virtual surveillance scenes through a panoramic display.

Compared with the prior art, the present invention has the following beneficial effects: In the intelligent method for viewing the surveillance videos of the present invention, the images of the videos from the plurality of channels extracted at the same time point are combined into a group of images, and the visual interest detection is performed on each group of images to obtain the visual image of interest corresponding to the group; the visual images of interest of each group are stitched into a panoramic image; all the panoramic images are converted into corresponding virtual surveillance scenes; and the viewing is performed in the virtual surveillance scenes through a panoramic display. Because the multi-channel surveillance videos are integrated into a virtual surveillance scene for panoramic viewing, it is possible to view surveillance videos from the plurality of channels at the same time, reduce the viewing time, and improve the efficiency. In addition, since the surveillance picture is not much different within the same second or even a few seconds, and in the present invention, one frame of image is extracted at the same time point for a video of the multi-channel surveillance videos, and a next frame of image is extracted after a predetermined time interval, instead of extracting all the images to have a view, and thus it is possible to improve the efficiency and not to miss important video information. In addition, in the present invention, the extracted images are processed to obtain visual images of interest, which is advantageous to make the video information and video details in the videos that are of interest to human eye salient and also improve the efficiency.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a flowchart of a specific embodiment of an intelligent method for viewing surveillance videos with improved efficiency according to the present invention;

FIG. 2 is a flowchart of a specific embodiment of obtaining a visual image of interest in an intelligent method for viewing surveillance videos with improved efficiency according to the present invention; and

FIG. 3 is a flowchart of a specific embodiment of stitching a panoramic image in an intelligent method for viewing surveillance videos with improved efficiency according to the present invention.

DETAILED DESCRIPTION

Reference is now made to FIG. 1, which is a flowchart of a specific embodiment of an intelligent method for viewing surveillance videos with improved efficiency according to the present invention. The method in this embodiment mainly comprises the following steps:

Step S101: acquiring surveillance videos. The surveillance videos comprise videos from a plurality of channels, and each video from each channel corresponds to a surveillance angle. In a specific implementation, the surveillance coverage of each video from each channel may be overlapped or may not be overlapped. This embodiment is illustrated with the surveillance coverage being overlapped as an example.

Step S102: extracting first frames of images of the videos from the plurality of channels at a same starting point of view time, and extracting next frames of images after a same predetermined time interval, and then continuing with extracting until last frames of images are extracted at a same ending point of view time. In a specific implementation, for different surveillance video transmission protocols, video frames transmitted per second are different. For example, 24 frames of images per second are transmitted. In the present invention, it is not necessary to extract all 24 frames, because practically the images transmitted per second have no much difference in video content, and even the images in a range of several seconds are similar. Therefore, in the present invention, the predetermined time interval can be set according to the actual situation. For example, the predetermined time interval may be set to one second, that is, one frame of an image is extracted per second for each channel. Alternatively, the predetermined time interval may be set to 3 seconds, that is, one frame of an image is extracted every 3 seconds for each channel. In addition, before extracting the images, the timing of the respective videos needs to be synchronized to avoid that the image videos are extracted at different times, which is not elaborated herein.

Step S103: grouping images extracted from the videos from the plurality of channels at a same time point into a group of images, and performing visual interest detection on each group of images to obtain a visual image of interest corresponding to the group. The visual image of interest obtained in this embodiment facilitates improvement of object recognition in the surveillance scene when viewing the videos. In addition, in the prior art, the visual interest is obtained by calculating the feature contrast of the image region relative to its surrounding neighborhood, and the calculation efficiency is low. In contrast, as a preferred embodiment, referring to FIG. 2, an improved method is used for detection in this embodiment. Specifically, the visual interest image of each group in this embodiment is obtained in the following manner:

First in step S1031, sparse coding is utilized to characterize each frame of image;

In step S1032, calculation of visual interest is performed according to the sparse coding of the frame image;

In step S1033, according to the calculation result of the visual interest, the visual region of interest of the frame image is segmented to obtain the visual image of interest of the frame image;

In step S1034, the above-described process is repeated for the other frame images of the group of images to obtain the corresponding visual images of interest of the other frame images of the group of images. In this embodiment, the sparse coding of the image is used to calculate the visual saliency, which can improve the calculation efficiency, and is not repeated here.

In addition, in step S104, the visual images of interest of each group are stitched into a panoramic image. In a specific implementation, as a preferred embodiment, referring to FIG. 3, stitching the visual images of interest of each group into a panoramic image in this embodiment comprises the following steps:

In step S1041, wavelet decomposition is performed on any two images A and 13 in the group of visual images of interest to obtain low frequency components and high frequency components;

In step S1042, for the low-frequency components, low-frequency coefficients of the images are fused to select low-frequency coefficients at corresponding positions where the visual interest values of the source images are great;

In step S1043, for the high-frequency components, high-frequency coefficients of the images are fused to take maximum of the absolute values as high-frequency coefficients after being fused;

In step S1044, inverse wavelet transform is performed on the fused low-frequency portion and the high-frequency portion to obtain the final stitched image of the images A and B;

In step S1045, other visual images of interest in each group are additionally stitched with the images A and B in the above-described fashion to obtain a final panoramic image;

It should be noted that, in the prior art, when image fusion is performed using wavelet transformation, image fusion is performed on each decomposition layer respectively. However, for low frequency portion, when the number of decomposition layers is low, the image contrast will degrade. In contrast, in the present embodiment, a visual interest based fusion algorithm is adopted for the low-frequency components, which can fuse the details of the source images together with a better fusion effect and not elaborated herein.

In step S105, all the panoramic images are converted into a corresponding virtual surveillance scene. In a specific implementation, a panoramic image is a basic unit constituting a virtual surveillance scene. In the prior art, the corresponding virtual surveillance scene may be converted using a cube mode, a spherical mode, and a cylindrical mode. In this embodiment, the cylindrical mode is used, that is, the panoramic images are stitched into a cylindrical shape centered on the camera viewpoint, so that a 360-degree ring-view of the line of sight can be achieved in the horizontal direction, and the rotation angle of the line of sight in the vertical direction is less than 180 degrees, which is not elaborated herein;

In step S106, the viewing is performed in the virtual surveillance scenes through a panoramic display. In a specific implementation, viewing performed in the virtual surveillance scene through a panoramic display is performed such that the viewing is performed according to a set automatic roaming path, for example, after viewing according to 360-degree panoramic rotation, then viewing the next virtual surveillance scene;

In the above embodiment, the surveillance videos from multi-channels are integrated into a virtual surveillance scene for being viewed by means of virtual reality, which may achieve simultaneously viewing the surveillance videos from multi-channels, reducing viewing time, and improving viewing efficiency.

In addition, in the surveillance videos, viewers need to focus on moving objects, but do not need to focus much on stationary objects or only on slightly moving objects. As a preferred embodiment, the present invention also adopts the following methods to pre-process the surveillance video images used in the virtual surveillance scenes, that is, before grouping the images extracted from the videos from the plurality of channels at a same time point into a group of images, the method further comprises:

21) establishing a background image a (x, y) using a first frame of image from the images extracted from a surveillance video from each channel. In a specific implementation, Gaussian model method may be used to perform modeling, wherein x is the horizontal ordinate in the Gaussian coordinate system, and y is vertical ordinate in the Gaussian coordinate system;

22) performing median filtering, edge enhancement, and binarization on the background image a (x, y) to obtain an image A (x, y) computed from the background image a (x, y);

23) similarly, performing median filtering, edge enhancement and binarization on a second frame of image from the images extracted from the surveillance video from each channel to obtain an image B (x, y) computed from the second frame of image;

24) performing a difference operation on the image A (x, y) and the image B (x, y) to obtain D(x, y)=B(x, v)−A(x, y);

25) if the number N of points with a value of 1 in D(x, y) is less than a threshold T, it is determined that no moving object is detected; and if the number N is greater than or equal to the threshold T, it is determined that a moving object is detected, and then D (x, y) is traversed to find points with a value of 1. The pixel values of the corresponding positions of B (x, y) are set to 0 as a moving target region, and the pixel values of other positions are kept unchanged, to get an image of a salient moving target region corresponding to the second frame of image. In a specific implementation, the value of 1 in of D(x, y) represents a moving region. However, in this embodiment, the threshold value T is set, and only if the number N of points with a value of 1 in D(x, y) is greater than or equal to the threshold T, it is determined that a moving object is detected, and when the number N of points with a value of 1 in D(x, y) is less than the threshold T, it means that although there is a moving object, it only moves slightly, which can be considered as no moving object detected. In practice, the threshold T may be adjusted according to the purpose of viewing the surveillance videos. When it is necessary to detect a small movement, the threshold T can be adjusted to be decreased. When a small movement can be ignored, the threshold T can be adjusted to be increased. The value of the threshold T is not specifically limited. In addition, in this embodiment, B(x, y) is a binary image, the positions in B(x, y) where pixel values are set to 0 represent the salient portions or foreground portions, and the corresponding positions where pixel values are set to 255 are background portion. By superimposing the B(x, y) and the original image, an image with a salient moving object region relative to the original image may be obtained, which is not elaborated herein;

26) the remaining other images extracted from the surveillance video from each channel are processed in accordance with steps 23)-25) to obtain corresponding other images with salient moving object regions.

In summary, by using the method of the present invention, on the one hand, the viewing time can be reduced. For example, if a viewer is to view the cars that may scratch other cars in the parking lot, in the prior art, if the three-channel surveillance videos are used and the video from each channel is 3 hours, he/she needs to view 9 hours. In contrast, in the present invention, it only takes 3 hours, or even 1 hour or less. In addition, there is no need to focus much on the still pictures. In the present invention, by pre-processing the images as described above, the moving picture when the vehicle is moving becomes salient, and it is convenient for the viewers to quickly find the desired key video information, and viewing efficiency is thus improved.

The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall be included in the scope of present invention. 

1. An intelligent method for viewing surveillance videos with improved efficiency, comprising: acquiring surveillance videos, wherein the surveillance videos comprise videos from a plurality of channels, and each video from each channel corresponds to a surveillance angle; extracting first frames of images of the videos from the plurality of channels at a same starting point of view time, and extracting next frames of images after a same predetermined time interval, and then continuing with extracting until last frames of images are extracted at a same ending point of view time; grouping images extracted from the videos from the plurality of channels at a same time point into a group of images, and performing visual interest detection on each group of images to obtain a visual image of interest corresponding to the group; stitching the visual images of interest of each group into a panoramic image; converting all panoramic images into corresponding virtual surveillance scenes; and performing the viewing in the virtual surveillance scenes through a panoramic display.
 2. The method according to claim 1, wherein before grouping the images extracted from the videos from the plurality of channels at a same time point into a group of images, the method further comprises: 21) establishing a background image a (x, y) using a first frame of image from the images extracted from a surveillance video from each channel; 22) performing median filtering, edge enhancement, and binarization on the background image a (x, y) to obtain an image A (x, y) computed from the background image a (x, y); 23) similarly performing median filtering, edge enhancement and binarization on a second frame of image from the images extracted from the surveillance video from each channel to obtain an image B(x, y) computed from the second frame of image; 24) performing a difference operation on the image A(x, y) and the image B(x, y) to obtain D(x, y)=B(x, y)−A(x, y); 25) if the number N of points with a value of 1in D(x, y) is less than a threshold T, it is determined that no moving object is detected; and if the number N is greater than or equal to the threshold T, it is determined that a moving object is detected, and then D(x, y) is traversed to find points with a value of 1, and the pixel values of the corresponding positions of B(x, y) are set to 0 as a moving target region, and the pixel values of other positions are kept unchanged, to get an image of a salient moving target region corresponding to the second frame of image; 26) processing the remaining other images extracted from the surveillance video from each channel in accordance with steps 23)-25) to obtain corresponding other images with salient moving object regions.
 3. The method according to claim 1, wherein the visual interest image of each group is obtained in the following manner: utilizing sparse coding to characterize each frame of image; performing calculation of visual interest according to the sparse coding of the frame image; according to the calculation result of the visual interest, segmenting the visual region of interest of the frame image to obtain the visual image of interest of the frame image; and repeating the above-described process for the other frame images of the group of images to obtain the corresponding visual images of interest of the other frame images of the group of images.
 4. The method according to claim 1, wherein stitching the visual images of interest of each group into a panoramic image specifically comprises: performing wavelet decomposition on any two images A and B in the group of visual images of interest to obtain low frequency components and high frequency components; for the low-frequency components, fusing low-frequency coefficients of the images to select low-frequency coefficients at corresponding positions where the visual interest values of the source images are great; for the high-frequency components, fusing high-frequency coefficients of the images to take maximum of the absolute values as high-frequency coefficients after being fused; performing inverse wavelet transform on the fused low-frequency portion and the high-frequency portion to obtain the final stitched image of the images A and B; additionally stitching other visual images of interest in each group with the images A and B in the above-described fashion to obtain a final panoramic image;
 5. The method according to claim 1, wherein the viewing performed in the virtual surveillance scene through a panoramic display is performed such that the viewing is performed according to a set automatic roaming path.
 6. The method according to claim 1, wherein the predetermined time interval is 1 second. 